]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
messageTray: Don't open by pressure when we have a full-screen window open
authorJasper St. Pierre <jstpierre@mecheye.net>
Sun, 10 Mar 2013 02:11:46 +0000 (21:11 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Sun, 10 Mar 2013 16:00:09 +0000 (12:00 -0400)
When we have a full-screen window open, we expect the app to get all of
the chrome, so we should disable the bottom barrier as well.

https://bugzilla.gnome.org/show_bug.cgi?id=694997

js/ui/layout.js
js/ui/messageTray.js

index b04cb5a362998384f8f50013f87a03419892e83c..d24d1475c60c39eccc32b8026ce430140e00f54c 100644 (file)
@@ -432,6 +432,9 @@ const LayoutManager = new Lang.Class({
                                                  Shell.KeyBindingMode.OVERVIEW);
         this._trayPressure.setEventFilter(this._trayBarrierEventFilter);
         this._trayPressure.connect('trigger', function(barrier) {
+            if (Main.layoutManager.bottomMonitor.inFullscreen)
+                return;
+
             Main.messageTray.openTray();
         });
     },
index 15629f5a53e149f53f206a03c413bda0915cbf68..b4fd4e7631a50511a3c23faae45ec9daf8c2463e 100644 (file)
@@ -1823,6 +1823,9 @@ const MessageTray = new Lang.Class({
     _trayDwellTimeout: function() {
         this._trayDwellTimeoutId = 0;
 
+        if (Main.layoutManager.bottomMonitor.inFullscreen)
+            return false;
+
         // We don't want to open the tray when a modal dialog
         // is up, so we check the modal count for that. When we are in the
         // overview we have to take the overview's modal push into account